home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Tools / ProcDump 1.6.2 / BHRAMA / C / BHRAMA.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-18  |  1.7 KB  |  49 lines

  1. /* 
  2.  * Bhrama Client-Server Interface 0.3
  3.  * (c)1999 CindyG
  4.  *
  5.  * bhrama.h : client side bhrama interface
  6.  */
  7.  
  8. #ifndef _BHRAMA_H_
  9. #define _BHRAMA_H_
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15. /* Bhrama Options */
  16. #define BHRAMA_PREDUMP_AUTODUMP        0x00000001    /* use internal predump */
  17. #define    BHRAMA_TRACE_RANGECHECK        0x00000002    /* ignore faults */
  18. #define    BHRAMA_TRACE_AUTOEIP        0x00000004    /* EIP confirmation */
  19. #define    BHRAMA_TRACE_AUTOLAYER        0x00000008    /* multiple layer confirmation */
  20. #define    BHRAMA_TRACE_TRACEAPI        0x00000010    /* trace API */
  21. #define    BHRAMA_RESTORE_AUTOOBJ        0x00000020    /* rebuild object size */
  22. #define    BHRAMA_RESTORE_SHRINKPE        0x00000040    /* optimize pe structure */
  23. #define    BHRAMA_RESTORE_RELOC        0x00000080    /* rebuild relocations */
  24. #define    BHRAMA_RESTORE_HEADER        0x00000100    /* rebuild header */
  25. #define    BHRAMA_LOADER_RAWMODE        0x00000200    /* force raw mode */
  26. #define    BHRAMA_LOADER_MERGECODE        0x00000400    /* merge code into an unique section */
  27. #define    BHRAMA_LOADER_CHECKHEADER    0x00000800    /* check header sections */
  28. #define    BHRAMA_MISC_SHOWDISASM        0x00001000    /* not implemented yet */
  29.  
  30. #define BHRAMA_OPT_DEFAULT      \
  31.     BHRAMA_PREDUMP_AUTODUMP | \
  32.     BHRAMA_RESTORE_AUTOOBJ  | \
  33.     BHRAMA_RESTORE_SHRINKPE 
  34.  
  35. /* Bhrama import rebuilder */
  36. #define BHRAMA_IMPORT_SKIP            0            /* don't rebuild import */
  37. #define BHRAMA_IMPORT_USE            1            /* use actual import info */
  38. #define BHRAMA_IMPORT_REBUILD        2            /* rebuild import table */
  39. #define BHRAMA_IMPORT_NEW            3            /* rebuild new import table */
  40.  
  41. /* Prototypes */
  42. BOOL bhrama_query(DWORD pid);
  43. BOOL bhrama_dump(DWORD pid, DWORD eip, DWORD delay, DWORD import, DWORD options);
  44. BOOL bhrama_dumppart(DWORD pid, DWORD start, DWORD length);
  45.  
  46. #ifdef __cplusplus
  47. };
  48. #endif
  49. #endif /* _BHRAMA_H_ */